/**
 * COPYRIGHT HangZhou Trustway Technology Company Limited
 * All right reserved.
 */
package com.robam.apollotest.apollotest.helper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author 薛铁琪
 * @CreateTime 2020-10-08 9:25
 * @Version 1.0
 */
@Component
public class ApolloTestHelper {
    @Value("${test.timeout}")
    private int timeout;
    @Value("${test.batch}")
    private int batch;

    @Autowired
    RedisTemplate redisTemplate;

    public String test() {
        redisTemplate.getExpire("test");
        return String.valueOf(timeout) + "|" + String.valueOf(batch);
    }
}
